$(function (){
    $(".shengjingJuan").click(function (event) {
        if ($($(this)).css("display") === "inline-block") {
            $($(this)).css("display", "block");
            $($(this).siblings()).css("display", "inline-block");
            $($(this).children('.shengjingJuanBiaoTi')).css("color", "red");
            $($(this).siblings().children('.shengjingJuanBiaoTi')).css("color", "black");
        }else {
            $(".shengjingJuan").css("display", "inline-block");
            $('.shengjingJuanBiaoTi').css("color", "black");
        }
        $($(this).children('ol')).toggle();
        $($(this).siblings('.shengjingJuan').children('ol')).css('display','none');
        event.stopPropagation();
    });
    $("a").on('click', function(e){
        e.stopPropagation();
    })
})